﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class TestTool : Editor
{
    [MenuItem("Tools/通关所有关卡", false, 11)]
    static private void DeleteAllPlayerPrefs()
    {
        PlayerPrefs.SetInt(UConst.Key_Max_Level, UConst.Developer_Level_Id);
        for (int i = 0; i < UConst.Developer_Level_Id; i++)
        {
            PlayerPrefs.SetInt(string.Format(UConst.Key_Is_Level_Pass, i+1), UConst.Level_State_Finish);
        }
    }
}
